<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
</head>
<body>
    <script src="https://cdn.bootcdn.net/ajax/libs/date-fns/2.0.0-alpha0/date_fns.min.js"></script>
    <script>
        let dateStr = "2020-08-19 12:33:00";
        let date = dateFns.parse(dateStr,"yyyy-MM-dd HH:mm:ss");
        console.log(date);
    </script>
</body>
</html>